package com.dys.testio10;

import java.io.Serial;
import java.io.Serializable;

/**
 * @className: src.main.java.com.dys.testio10.Student
 * @description: src.main.java.com.dys.testio10
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/08/17 上午12:17
 */
public class Student implements Serializable {
    /**
     * 序列化版本标识符
     */
    @Serial
    private static final long serialVersionUID = 2322127170441933441L;
    /**
     * 不想被序列化的属性：比如银行卡密码
     */
    private transient String name;
    private static int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
